<script>
	export default {
		onLaunch: function() {
			if(!wx.getStorageSync("token")){
							wx.showModal({
								title: '请先登录',
								content: '',
								success: function(res) {
										wx.login({
											success(res) {
												wx.setStorageSync("code", res.code)
											}
										})
										wx.getUserProfile({
											desc: '用于完善会员资料',
											success: (res) => {
												console.log(res)
											},
										})
								}
							})
						}
		},
		onShow: function() {
			console.log('App Show')
				
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			
		}
	}
</script>

<style>
	@import "./common/icon.css";

	* {
		margin: 0;
		padding: 0;
	}

	page {
		background-color: #F4F5F6;
		height: 100%;
		font-size: 28rpx;
		line-height: 1.8;
	}

	.icon1 {
		color: #707070;
		font-size: 60rpx;
	}
</style>
